package com.ss.android.article.base.feature.detail.model;

import com.ss.android.image.model.ImageInfo;
import org.json.JSONObject;

public final class ImageRecom extends g {
    public ImageInfo mImageInfo;

    public ImageRecom() {
        super(7);
    }

    public final void initWithJO(JSONObject jo) {
        super.initWithJO(jo);
        JSONObject v0 = jo.optJSONObject("image");
        if(v0 != null) {
            this.mImageInfo = ImageInfo.fromJson(v0, true);
        }
    }

    public final boolean isValid() {
        return super.isValid() && this.mImageInfo != null && this.mImageInfo.isValid();
    }
}

